package ucd.csi.comp30220.fall2011.oteop.flughafen;

import ucd.csi.comp30220.fall2011.oteop.flughafen.impl.RemoteAirportClient;

public class AirportFinder {
    
    static { new AirportFinder(); }
    public AirportFinder() { }
    
    public static Airport find(String code) {
        return find(code, 10*1000);
    }

    public static Airport find(String code, long timeout) {
        try {
            return new RemoteAirportClient(code, timeout);
        } catch (Exception e) { 
            return null;
        }
    }
}
